using CMS.Entity;
using Microsoft.EntityFrameworkCore;
using Microsoft.EntityFrameworkCore.Metadata.Builders;

namespace CMS.EFCore.Config;

public class ImageConfig : IEntityTypeConfiguration<Image> {
    public void Configure(EntityTypeBuilder<Image> builder) {
        builder.Property(i => i.ImageName).HasMaxLength(200).IsRequired();
    }
}